import request from "@/api/request"

// 请求购物车列表数据
function cartList(data){
    return request({
        url:"/cart/cartList",
        method:"get",
        data
    })
}


//删除商品
function deleteAction (data){
    return request({
        url:"/cart/deleteAction",
        method:"get",
        data
    })
}

//添加购物车
function addCart (data){
    return request({
        url:"/cart/addCart",
        method:"post",
        data
    })
}
export {
    cartList,deleteAction,addCart
}